﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="../Content/scripts/jquery-1.11.1.min.js"></script>
    <script src="../Content/scripts/bootstrap/bootstrap.min.js"></script>
    <link href="../Content/scripts/plugins/jquery-ui/jquery-ui.min.css" rel="stylesheet" />
    <script src="../Content/scripts/plugins/jquery-ui/jquery-ui.min.js"></script>
    <!-- Bootstrap -->
    <link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css" />
    <link href="../Content/styles/font-awesome.min.css" rel="stylesheet" />
    <link href="../Content/adminLTE/css/index.css" rel="stylesheet" />
    <link href="../Content/scripts/plugins/jqgrid/jqgrid.css" rel="stylesheet" />
    <link rel="Shortcut icon" href="../images/favicon.ico" />
    <link href="../Content/styles/learun-ui.css" rel="stylesheet" />
    <script src="../Content/scripts/plugins/layout/jquery.layout.js"></script>
    <script src="../Content/scripts/plugins/dialog/dialog.js"></script>
    <script src="../Content/scripts/plugins/jqgrid/grid.locale-cn.js"></script>
    <script src="../Content/scripts/plugins/jqgrid/jqgrid.min.js"></script>
    <script src="../Content/scripts/plugins/validator/validator.js"></script>
    <script src="../Content/scripts/utils/learun-ui.js"></script>
    <script src="../Content/scripts/utils/learun-form.js"></script>
    <script src="../Content/scripts/plugins/layout/jquery.layout.js"></script>
    <script src="../My97DatePicker/WdatePicker.js"></script>
    <script src="EquInfoJS.js"></script>
    <script src="../js/getUrlParam.js"></script>


    <style>
        html, body {
            height: 100%;
            width: 100%;
        }
    </style>
</head>

<body>
    <div style="margin-left: 10px; margin-top: 20px; margin-right: 30px;">
        <table class="form" id="texingeditform" style="margin-top:10px;">
            <tr>
                <th class="formTitle">特性类型<font face="宋体">*</font></th>
                <td class="formValue" colspan="3">
                    <input id="EquTypeFeatures" type="text" class="form-control" placeholder="请输入特性类型" isvalid="yes" checkexpession="NotNull" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">特性名称<font face="宋体">*</font></th>
                <td class="formValue" colspan="3">
                    <input id="FeaturesContent" type="text" class="form-control" placeholder="请输入特性名称" isvalid="yes" checkexpession="NotNull" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">维护周期(天)</th>
                <td class="formValue" colspan="3">
                    <input id="MaintenanceCycle" type="text" class="form-control" />
                </td>
            </tr>

        </table>
    </div>

    <script>
        var IDS = UrlParam.paramValues("FeatureID");
        var FeatureID = IDS[0];

        $(function () {
            $.equinfojs.initEquTypeFeaterEditForm(FeatureID);
        });

        // 保存表单
        function AcceptClick(grid) {
            if (!$('#texingeditform').Validform()) {
                return false;
            }

            var EquTypeFeatures = $('#EquTypeFeatures').val();
            var FeaturesContent = $('#FeaturesContent').val();
            var MaintenanceCycle = $('#MaintenanceCycle').val();

            $.equinfojs.editEquTypeFeature(FeatureID, EquTypeFeatures, FeaturesContent, MaintenanceCycle, grid);

        }
    </script>
</body>
</html>
